from django.contrib import admin

from blog.models import Blog, Category, Tag, Comment


class BlogAdmin(admin.ModelAdmin):
    list_display = ('title', 'click', 'category', 'create_time', 'modify_time')
    list_display_links = ('title', 'category')


# 管理admin站点
admin.site.register(Blog, BlogAdmin)
admin.site.register(Category)
admin.site.register(Tag)
admin.site.register(Comment)
